<template>
  <div>
    <el-form label-position="left" inline class="demo-table-expand">
      <el-form-item label="工作流编号">
        <span>{{ dataSource.oid }}</span>
      </el-form-item>
    </el-form>
    <el-form label-position="left" inline class="demo-table-expand">
      <el-form-item label="工作流名称">
        <span>{{ dataSource.name }}</span>
      </el-form-item>
    </el-form>
    <el-form label-position="left" inline class="demo-table-expand">
      <el-form-item label="创建时间">
        <span>{{ dataSource.creatTime }}</span>
      </el-form-item>
    </el-form>
    <el-form label-position="left" inline class="demo-table-expand">
      <el-form-item label="发起人">
        <span>{{ dataSource.creatUser }}</span>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
  export default {
    name: 'WorkFlowInfo',
    props: {
      /*结构树数据源*/
      dataSource: {
        type: Object,
        required: true,
        default: () => {
          return {
            oid: 'wf-001',
            name: '测试工作流001',
            creatUser: 'admin',
            creatTime: '2020-7-20',
            status: 1,
            workFlowID: 'wf-001',
            rate: 10,
          }
        },
      },
    },
    methods: {},
  }
</script>

<style scoped></style>
